package com.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;

import com.hibernate.HibernateSessionFactory;
import com.model.Roomtype;

public class RoomTypeDao {
	
	public List<Roomtype> findAllTypes(){
		Session session = HibernateSessionFactory.getSession();
		Criteria criteria = session.createCriteria(Roomtype.class);
		
		List<Roomtype> roomtypes = criteria.list();
		return roomtypes;
	}

}
